package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.util.EmployeeQueryObject;
import cn.wolfcode.util.JsonResult;
import cn.wolfcode.util.PageResult;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void insert(Employee employee, Long[] ids);
    void deleteById(Long id);
    void update(Employee employee, Long[] ids);
    Employee selectById(Long id);
    List<Employee> listAll();
    PageInfo<Employee> query(EmployeeQueryObject qo);
    void batchDelete(Long[] ids);
    Employee selectByName(String name);
    Workbook exportXls();

    void importXls(MultipartFile file) throws Exception;

    List<Employee> selectByRoleSn(String market, String market_manager);
}
